import request from '@/utils/request'

// 查询验证码列表
export function listCaptcha(query) {
  return request({
    url: '/captcha/list',
    method: 'get',
    params: query
  })
}

// 查询验证码详细
export function getCaptcha(uuid) {
  return request({
    url: '/captcha/' + uuid,
    method: 'get'
  })
}

// 新增验证码
export function addCaptcha(data) {
  return request({
    url: '/captcha',
    method: 'post',
    data: data
  })
}

// 修改验证码
export function updateCaptcha(data) {
  return request({
    url: '/captcha',
    method: 'put',
    data: data
  })
}

// 删除验证码
export function delCaptcha(uuid) {
  return request({
    url: '/captcha/' + uuid,
    method: 'delete'
  })
}
